package com.fjp.heartguard.app.weight.pop

import android.content.Context
import android.widget.TextView
import com.fjp.heartguard.R
import com.lxj.xpopup.core.CenterPopupView

class ConfirmPop(context: Context, var title: String, var des: String) : CenterPopupView(context) {
    lateinit var nameTv: TextView

    override fun getImplLayoutId(): Int {
        return R.layout.pop_tip
    }

    override fun onCreate() {
        super.onCreate()
        findViewById<TextView>(R.id.sureBtn).setOnClickListener {
            dismiss()
        }
        findViewById<TextView>(R.id.titleTv).text = title
        findViewById<TextView>(R.id.desTv).text = des
    }
}